<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:include page="validaSesion.jsp"></jsp:include>
<%@ include file="../taglib.jsp"%>
<html>
<head>
<link href="css/menuPrincipal.css" type=text/css rel=stylesheet>
<script src="js/menuBar.js" type="text/javascript"></SCRIPT>

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.metadata.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>
<SCRIPT src="js/calendar.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/displaytag.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/calendar-es.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/calendar-setup.js" type=text/javascript></SCRIPT>
<LINK href="css/calendar-blue.css" type=text/css rel=stylesheet>
<link href="css/estilos.css" type=text/css rel=stylesheet>
<link href="css/displaytag.css" type=text/css rel=stylesheet>
<script type="text/javascript">
	/*
	 function busConAlumno(evaluar){
	 document.frmBuscar.action = 'carnet';
	 document.frmBuscar.metodo.value=evaluar;
	 document.frmBuscar.submit();
	 }*/
	function mensaje(sms) {

		alert("CARNET GENERADO, CODIGO DEL CARNET Nro: " + sms + " ");

	}
</script>

</head>

<body class="fondo">

<table border="0" height=100% width=100%>
	<tr>
		<td align="center"><br>

		<jsp:include page="includes\header.jsp" /> <jsp:include
			page="includes\menuBarraECA-Carnet.jsp" /> <jsp:include
			page="includes\header2.jsp" /> <br>

		<div class=cuerpo_xy>

		<div class=cuerpo>
		<div class=contenido>


		<form name="frmBuscar" method="post"><input type="hidden"
			name="metodo" />


		<table border="0" cellspacing="0" cellpadding="0" height=100%
			width=95% align="center">
			<tr>
				<td align="center" colspan="2" bgcolor="#F1FDD9">
				<h2>REGISTRO DE CARNET UNIVERSITARIO</h2>
				</td>
			</tr>
			<tr>
				<td align="center" colspan="2">&nbsp;</td>
			</tr>
			<tr>
				<td align="center" bgcolor="#DAE6FF" colspan="2">...::: LISTA
				DE POSTULANTES (Sin carnet) :::...</td>

			</tr>
			<tr>
				<td align="center" colspan="2">
      <display:table name="${requestScope.listaCliente}" id="bean"
					export="false" requestURI="carnet?metodo=consulPosActivo"
					pagesize="3">
					<display:column property="strNombres" title="Nombre"
						sortable="true" />
					<display:column property="strApepat" title="ApePater"
						sortable="true" />
					<display:column property="strApemat" title="ApeMater" sortable="true" />
					<display:column property="strEstado" title="Estado" sortable="true" />
					<display:column title="">
						<a href="carnet?metodo=listarXCodPos&codigo=${bean.intCodPostulante}">
						<img alt="agregar" src="images/open2.gif" height="16" width="16"
							border="0" /> </a>
					</display:column>
				</display:table>

				<p>&nbsp;</p>
				<!-- <p>&nbsp;</p> --></td>
			</tr>

			<tr>
				<td colspan="2" align="center" bgcolor="#DAE6FF">...::: DATOS
				DEL POSTULANTE :::...</td>
			</tr>
			<tr>
				<td align="center" colspan="2">&nbsp;</td>
			</tr>
			<tr>
				<td colspan="2">
				<table border="0" align="center" background="images\celeste.png">
					<tr>
						<td colspan="2" align="center">
						<h3>UNIVERSIDAD NACIONAL DEL CENTRO DEL PERU</h3>
						</td>
						<td align="center"><img src="images\logo.png"></td>
					</tr>
					<tr>
						<c:if test="${!empty requestScope.BEAN.intCodPostulante}">
							<td rowspan="4"><img
								src="carnet?metodo=obtenerImagen&cod=${requestScope.BEAN.intCodPostulante}"
								height="122" width="111" /></td>
						</c:if>
						<td>Codigo del Postulante :</td>
						<td><input type="text" class="{required:true,maxlength:[25]}"
							name="txtCodAlumno" size="25" disabled="disabled"
							value="${requestScope.BEAN.intCodPostulante}" /></td>
					</tr>

					<tr valign="top">
						<td>Ape. Paterno :</td>
						<td><input type="text" class="{required:true,maxlength:[25]}"
							name="txtApePater" value="${requestScope.BEAN.strApepat}"
							size="25" disabled="disabled" /></td>
					</tr>
					<tr valign="top">
						<td>Ape. Materno :</td>
						<td><input type="text" class="{required:true,maxlength:[25]}"
							value="${requestScope.BEAN.strApemat}" size="25"
							disabled="disabled" name="txtApeMater" /></td>
					</tr>
					<tr valign="top">
						<td>Nombres :</td>
						<td><input type="text" class="{required:true,maxlength:[25]}"
							name="txtNombre" size="25" disabled="disabled"
							value="${requestScope.BEAN.strNombres}" /></td>
					</tr>
					<tr>
						<td colspan="3" align="center"><a
							href="carnet?metodo=generarCarnet&codPos=${requestScope.BEAN.intCodPostulante}">
						<img src="images/GENERAR.png" height="40" width="80" border="0"></img>
						</a> <%
 	Integer sms = (Integer) request.getAttribute("GENERADO");
 	if (sms != null) {
 		out.println("<script type=text/javascript>");
 		out.println("mensaje('" + sms + "');");
 		out.println("</script>");
 	}
 %>
						</td>
					</tr>

				</table>

				</td>
			</tr>


		</table>


		</form>


		</div>
		</div>

		<jsp:include page="includes\lateral.jsp" /></div>

		<br>

		<jsp:include page="includes\piePagina.jsp" /></td>
	</tr>


</table>


</body>

</html>